< previous page page_43 next page >

Page 43
you can easily customize an object's appearance to the task at hand. In the following sections, you learn about properties as they relate to a form object; the same concepts apply to properties of controls as well.
Property Basics
When you look at a form, you see a rectangular window on the screen, like the one shown in Figure 3.3. This window's appearance is defined by a set of properties. For example, the position of the form on the screen is denoted by its Left and Top properties, and its size is denoted by its Width and Height properties. The form's Caption property dictates what is shown in its title bar. You can even specify which (if any) control buttons appear on the form's title bar by setting a couple of properties.
0043-01.jpg
Figure 3.3
A form's appearance is defined by its properties.
When you save a form as part of a project, Visual Basic creates a text file with an .FRM extension. This file stores information about the form, its properties, the objects contained in the form, and the objects' properties, as well as any program code that may have been created for that form. Figure 3.4 shows part of the .FRM file for the form illustrated in Figure 3.3.
0043-02.jpg
Figure 3.4
A form's .FRM file contains information about
the properties that define the form and its objects.
CAUTION
For some forms, Visual Basic also creates a file with an .FRX extension. This file stores graphics and other binary elements that cannot be defined in a text file. If you copy a form from one folder to another, copying the associated .FRX file as well is very important.

 
< previous page page_43 next page >